package com.hope;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class Tutorial extends Fragment {
	TutorialPagerAdapter tutorialPagerAdapter;
    ViewPager mViewPager;
	
	public Tutorial() {
        // Empty constructor required for fragment subclasses
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.tutorial, container, false);
        
        getActivity().setTitle("Tutorial");
        
        tutorialPagerAdapter = new TutorialPagerAdapter(getFragmentManager());
        mViewPager = (ViewPager) rootView.findViewById(R.id.tut_pager);
        mViewPager.setAdapter(tutorialPagerAdapter);
        return rootView;
    }
}